package com.lj.message.service;

import com.lj.message.entity.SysMessage;
import com.lj.message.param.SysMessageSaveParam;
import com.lj.mp.standard.StandardService;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.util.List;

/**
 * <p>
 * 系统消息表 服务类
 * </p>
 *
 * @author luojing
 * @since 2025-10-15 16:57:29
 */
public interface SysMessageService extends StandardService<SysMessage> {

    void save(SysMessageSaveParam param);

    void delete(List<Long> ids);

    /**
     * @return 创建sse连接
     */
    SseEmitter open(String clientId);

    void sendMessage(SysMessageSaveParam param);

    void markRead(List<Long> ids);
}
